Skip to content

Not to cluster Markers#270

Open
ddrr1337 wants to merge 11 commits into
tomekvenits:masterfrom
ddrr1337:notToCluster
Open

Not to cluster Markers#270
ddrr1337 wants to merge 11 commits into
tomekvenits:masterfrom
ddrr1337:notToCluster

Conversation

@ddrr1337

Copy link
Copy Markdown

Hi This is my first pull request!. Hope I will do propely.

I notice that when is clustering, is clustering everything. I Think will be nice to prevent some custom Markers to being wrapped into a cluster.
For example If my position uses a custom Marker that reprent my position, then my position will end clustered as well, to prevent that I modified the code to accept a new prop 'notToCluster' where you can pass an Array of the keys you don't want to cluster.

Thanks!

@gusthavosouza

Copy link
Copy Markdown

I don't think you need to do this at all.

There's a property called cluster in the Marker just pass it as false and it will not be clustered that item.

<Marker cluster={false} />

@ddrr1337

@ddrr1337

ddrr1337 commented Feb 3, 2025

Copy link
Copy Markdown
Author

I don't think you need to do this at all.

There's a property called cluster in the Marker just pass it as false and it will not be clustered that item.

<Marker cluster={false} />

@ddrr1337

Yes you are right just foun it in helpers, thaks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants